From 2e9addcb47db0cade9412500aa55976fb012c2d9 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sat, 11 Sep 2021 09:27:17 +0100 Subject: [PATCH] daemon: Build with -pthread The daemon failed to link with glibc < 2.34 because we didn't include the separate pthread library. Adding -pthread fixes this. Note this change was also make upstream in commit 733d2182b6 ("Remove the tools.") although I think either by accident or unrelated. Reported-by: Toolybird Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2003326 Gbp-Pq: Name daemon-Build-with-pthread.patch --- daemon/Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon/Makefile.am b/daemon/Makefile.am index 92e5aa40..cbf5a953 100644 --- a/daemon/Makefile.am +++ b/daemon/Makefile.am @@ -256,6 +256,7 @@ guestfsd_CPPFLAGS = \ -I$(top_srcdir)/common/utils \ -I$(top_builddir)/common/utils guestfsd_CFLAGS = \ + -pthread \ $(WARN_CFLAGS) $(WERROR_CFLAGS) \ $(RPC_CFLAGS) \ $(AUGEAS_CFLAGS) \ -- 2.30.2